<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="common/tag.jsp" %>

<!DOCTYPE html>
<html>
<head>
	<title>用户列表页</title>
	<%@ include file="common/head.jsp"%>
</head>
<body>
	<div class="container">
		<div class="panel panel-default">
			<div class="panel-heading text-center">
				<h2>用户列表</h2>
			</div>
			<div class="panel-body">
				<p>
					<a href="addUserJsp" class="btn btn-info btn-lg btn-block">添加用户信息</a>
				</p>
				<table class="table table-hover">
					<thead >
						<tr>
							<th>序号</th>
							<th>是否为admin</th>
							<th>名称</th>
							<th>url</th>
							<th>前缀</th>
							<th>父id</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${servicesList}" var="services" varStatus="i">
							<tr>
								<td>${i.index+1}</td>
								<td>${services.admin}</td>
								<td>${services.name}</td>
								<td>${services.url}</td>
								<td>${services.prefix}</td>
								<td>
									<a href="delservices/${services.name}" class="btn btn-primary">修改</a>
									<a href="upservices/${services.name}" class="btn btn-danger">删除</a>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</html>